<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="img/ic.png">
    <title>修改成绩日志</title>

    <!-- Bootstrap Core CSS -->
    <link href="css/bootstrap.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="css/sb-admin.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="css/plugins/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="css/cdn/font_evmq6xwfabutyb9.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="js/cdn/html5shiv-3.7.0.js"></script>
    <script src="js/cdn/respond-1.4.2.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" href="css/cdn/dataTables.bootstrap.css">
    <link rel="stylesheet" href="css/cdn/font_i0327076nave7b9.css">
    <link href="nuget/content/content/toastr.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="css/datatable.css"/>
    <style>
		#example_paginate{
			float:right;
		}
		.handle-btn{
			cursor: pointer;
		    margin: 0 2px;
		}
		#wrapper {
		    padding-left:0px;
		}
		.navigation{
			border-bottom: 3px solid #edebeb;
		}
		
		.navigation a:hover{
			color: #0F6AFC;
			border-bottom: 2px solid #01AAED;
		}
		.this{
			color: #01aaed;
			font-weight:bold;
			border-bottom: 2px solid #01AAED;
		}
		
		#check>tbody>tr{
			line-height: 20px;
		}
		.odd{
			background: #f5f5f5;
		}
		[v-cloak] {
			display: none;
		}
	</style>
</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"style="height: 67px; background-image:url(img/top.jpg);">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
            </div>
            <!-- Top Menu Items -->
            <ul class="nav navbar-right top-nav">
                  
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <span id="userName"></span> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="refereePwd.html"><i class="fa fa-fw fa-gear"></i> 修改密码</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="login.html"><i class="fa fa-fw fa-power-off"></i> 退出</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </nav>

        <div id="page-wrapper">

            <div class="container-fluid">
           		<div class="row sss" >
					<nav class="navbar navbar-default" role="navigation">
						<div>
							<ul class="nav navbar-nav">
								<li>
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">
										比赛信息
										<b class="caret"></b>
									</a>
									<ul class="dropdown-menu">
										<li><a href="index.html">比赛实况</a></li>
										<li id="index_dek" style="display: none;"class="divider" >
                                    	<li id="index_des" style="display: none;"><a href="Check.html">比赛回查</a></li>
									</ul>
								</li>
								<li id="index_ach" style="display: none;" class="active"><a href="achievement.html">成绩管理</a></li>
								<li><a href="ParticipatingTeams.html">参赛车队</a></li>
								<li><a href="Court.html">赛场维护</a></li>
								<li><a href="Fault.html">场景维护</a></li>
								<li class="dropdown"  id="index_dev" style="display: none;">
									<a href="#" class="dropdown-toggle" data-toggle="dropdown">
										基础数据
										<b class="caret"></b>
									</a>
									<ul class="dropdown-menu">
										<li><a href="device.html">设备管理</a></li>
										<li class="divider">
										<li><a href="Referee.html">裁判管理</a></li>
										<li class="divider">
										<li><a href="User.html">用户管理</a></li>
									</ul>
								</li>
							</ul>
							<span style="float: right; margin-right: 0px; margin-top: 10px;"><a href="Ranking_2.html"><img style="width: 60%;" src="img/skip.png"></a></span>
						</div>
					</nav>
				</div>
                <div class="row">
                	<div class="panel">
                        <div class="panel-heading">
                        	<ul class="nav">
                        		<li style="float: left;"><b class="panel-title" style="line-height: 34px;"><span class="xiahua">成绩修改管理</span></b></li>
                        	</ul>
                        </div>
                        <div class="panel-body">
                            <table id="example" class="display" width="100%"></table>
                        </div>
                   </div>
                </div>
                    
                <!-- /.曲线图 -->
            </div>
            <!-- /.container-fluid -->

        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="js/jquery.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="js/bootstrap.min.js"></script>
    <!-- tab table-->
    <script src="js/cdn/jquery.dataTables.min.js"></script>
    <script src="js/cdn/dataTables.bootstrap.js"></script>
    <script src="nuget/content/scripts/toastr.js"></script>
    <script type="text/javascript" src="js/common.js" ></script>
    <!-- Morris Charts JavaScript -->
    <script src="js/plugins/morris/raphael.min.js"></script>
	<script type="text/javascript" src="js/vue/vue.js" ></script>
    <script type="text/javascript" src="js/vue/vue-router.js" ></script>

    <script>
        var userName = localStorage.getItem("userName");    $("#userName").text(userName);
		Vue.filter("timeChange", function(value) {
			return replaceTime(value / 1000);
		});
		var vue = new Vue({
		  el: '#wrapper',
		  data:{ 
		  	dataObj: {
		  		teamId:"",
		  		aDataSort:"",
		  		parentNode:""
		  	}
		  },
		  mounted:function(){
		  	this.deviceBasicId();
		  },
		  methods:{
		  	//初始化显示详情
		  	deviceBasicId:function(){
		  		$(document).ready(function() {
				  var myTable = $('#example').DataTable({
			      "processing": false, //DataTables载入数据时，是否显示‘进度’提示  
			      "stateSave": true, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态  
			      "scrollCollapse": true, //是否开启DataTables的高度自适应，当数据条数不够分页数据条数的时候，插件高度是否随数据条数而改变  
			      "paginationType": "full_numbers", //详细分页组，可以支持直接跳转到某页
//                  "bPaginate" : true, //是否显示（应用）分页器
			      "language": lang, //提示信息
			      "destroy":true,//Cannot reinitialise DataTable,解决重新加载表格内容问题  
			      "autoWidth": true, //自适应宽度，
			      "lengthMenu": [10, 20, 30],
			      "stripeClasses": ["odd", "even"], //为奇偶行加上样式，兼容不支持CSS伪类的场合
			      "showRowNumber":true,
			      "searching": false, //是否允许Datatables开启本地搜索
//			      "paging": false, //是否开启本地分页
//			      "lengthChange": false, //是否允许产品改变表格每页显示的记录数
//			      "info": false, //控制是否显示表格左下角的信息
			      //跟数组下标一样，第一列从0开始，这里表格初始化时，第四列默认降序
			      "ordering": false,
			      "deferRender": true, //延迟渲染
                  "serverSide": true,
                  "ajax": function (data, callback, settings) {
                      //封装请求参数
                      //data.length; 页面显示记录条数，在页面显示每页显示多少项的时候
                      //data.start; 开始的记录序号
                      var param = {};
                      param.pageNo = (data.start / data.length)+1;
                      param.pageSize = data.length;
                      //ajax请求数据
                      $.ajax({
                          type: "POST",
                          url: url +'/user/illegalLogs',
                          cache: false,   //禁用缓存
                          data: param,  //传入组装的参数
                          dataType: "json",
                          success: function (result) {
                              //封装返回数据
                              var returnData = {};
                              returnData.draw = data.draw;//这里直接自行返回了draw计数器,应该由后台返回
                              returnData.recordsTotal = result.numReturn;//返回数据全部记录
                              returnData.recordsFiltered = result.numReturn;//后台不实现过滤功能，每次查询均视作全部结果
                              returnData.data = result.result;//返回的数据列表
                              callback(returnData);
                          }
                      });
                  },
                  "columns":
                    [{ //定义列
                      "data":"riwso",
                      "width":"50px",
                      "render":function(data, type, full, meta ){
				        	return (meta.row+1);
				        },
				        "sTitle": "序号", //标题
				        "sDefaultContent": "" //此列默认值为""，以防数据中没有此值，DataTables加载数据的时候报错
				    },
                    {
                        "data": "userCode",
                        "sTitle": "用户编号",
                        "sDefaultContent": ""
                    },{
                        "data": "userName",
                        "sTitle": "用户名称",
                        "sDefaultContent": ""
                    },{
                        "data": function (obj) {
                            return replaceTime(obj.logTime / 1000);
                        },
                        "sTitle": "日志记录时间",
                        "sDefaultContent": ""
                    },{
                        "data": "message",
                        "sTitle": "操作内容",
                        "sDefaultContent": ""
                    },{
                        "data": "detailMessage",
                        "sTitle": "操作详细内容",
                        "sDefaultContent": ""
                    },{
		                "data": "ip",
		                "sTitle": "IP地址",
		                "sDefaultContent": ""
		            }]
                  });
			    });
		  	}
//		  	,
//			drawLine:function(){
//		  	    alert(1)
//				$.ajax({
//		  			type: "get",
//		  			url:url+'/users/illegalLogs',
//		  			async: false,
//		  			data:{
//		  			    pageNo: 1,
//                        pageSize:  10
//		  			},
//		  			dataType: 'json',
//		  			beforeSend: function(request) {
//						request.setRequestHeader("accessToken", accessToken);
//					},
//					success: function(data) {
//						if(data.result.length != 0){
//							$('#example').dataTable().fnAddData(data.result);
//						}else{
//							$('#example').dataTable().fnClearTable();
//						}
//					}
//		  		});
//			}
		  }
		});
	</script>
    
</body>

</html>
